Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the use of stamen tiles in the repo #451

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Azaya89
Copy link
Collaborator

@Azaya89 Azaya89 commented Nov 21, 2024

The use of stamen tiles in the census example will be done under #430

@Azaya89 Azaya89 requested a review from hoxbro November 21, 2024 16:56
@Azaya89 Azaya89 self-assigned this Nov 21, 2024
Copy link
Contributor

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR.

@@ -193,7 +193,7 @@
"source": [
"rectangles = gv.Rectangles([(0, 0, 3, 3), (12, 12, 15, 15)]).opts(fill_alpha=0.2)\n",
"box_annotator = hv.annotate.instance()\n",
"labels = gv.tile_sources.StamenLabels()\n",
"labels = gv.tile_sources.EsriImagery()\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not EsriStreet like the others?

@maximlt
Copy link
Contributor

maximlt commented Nov 21, 2024

It'd be nice if you could post screenshots of the new plots so we can see if the basemap colors don't confict too much with the data colors.

@Azaya89
Copy link
Collaborator Author

Azaya89 commented Nov 22, 2024

Landsat Old

landsat_old

Landsat new

landsat_new

Ml_annotator old

ml_old

Ml_annotator new

ml_new

Ship traffic old

ship_old

Ship traffic new

ship_new

@maximlt
Copy link
Contributor

maximlt commented Nov 22, 2024

Thanks @Azaya89! The comparison with the old maps doesn't really apply as the Stamen maps can no longer be loaded. You can visit for example the ML Annotator example and verify in your browser that the requests made to get the Stamen tiles fail. This example seems to have an overlay of tiles (ESRI * Stamen).

image

Copy link
Contributor

Your changes were successfully integrated in the dev site, make sure to review the pages of the projects you touched before merging this PR.

Comment on lines 345 to +346
"tiles = hv.element.tiles.ESRI().opts(alpha=0.4, bgcolor=\"black\").opts(responsive=True, min_height=600)\n",
"labels = hv.element.tiles.StamenLabels().opts(alpha=0.7, level='glyph')\n",
"labels = hv.element.tiles.EsriUSATopo().opts(alpha=0.4, level='glyph')\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Azaya89 the code used to overlay an ESRI base map with the Stamen Labels layer that just contains labels (https://maps.stamen.com/toner-labels/#12/37.7922/-122.2301). With these changes, it is now overlaying two ESRI base maps, which doesn't make much sense. We've also lost the labels.

Let's go through these examples next week together.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I was thinking about it in a different way. See you next week then!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if we could find a labels-only tile set that still works, but I'm not aware of any. Failing that, I think the task is to choose an underlying tile set with labels embedded in it already in a way that is not too distracting. I do think people need labels, because otherwise it's hard to orient yourself. But with many tile sets, the labels are rendered in a way that becomes extremely busy when dense data is overlaid on them. So there's definitely some trial and error involved and tradeoffs to make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace broken Stamen tiles
3 participants